/**
 * WordSegmentController.java created by zhangzhidong 
 * at 下午5:01:34 2016年4月21日
 */
package controllers.wechatlab;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import pojo.ResCode;

/**
 * @author zhangzhidong
 *
 */
@Controller
@RequestMapping("wordseg")
public class WordSegmentController extends WechatBaseController {
	@RequestMapping("/en.do")
	@ResponseBody
	public String wordSeg(HttpServletRequest req,HttpServletResponse res){
		String srcText=  req.getParameter("srcText");
		if(srcText==null||srcText.length()==0){
			return jsonDump(ParamsError);
		}else{
			return jsonDump(new ResCode(200, srcText));
		}
	}
}
